610 - Street directions (Grafos, DFS) && 10986 - Sending email (Grafos, Algoritmo...
[and.git] / 272 - TeX Quotes / 272.cpp
blob6c05e1dcae5b11642da20d95923aafcfe8a377c8
1 #include <stdio.h>
3 int main(){
4 char c;
5 bool b = true;
6 while ((c = getchar()) != EOF){
7 if (c == '"'){
8 printf(b?"``":"''");
9 b = !b;
10 }else
11 putchar(c);
13 return 0;